package com.zhy.learning.demo.exception1;

public class Exception1 {
    public void test1() {
        int a = 1;
        if (2 == a) {
            System.out.println(2);
        } else if (3 == a) {
            System.out.println(3);
        } else {
            throw new RuntimeException("测试");
        }
        System.out.println("Hello World!");
    }
}
